package com.situ.service.impl;


import com.situ.bean.User;
import com.situ.bean.Useraddress;
import com.situ.dao.UseraddressDao;
import com.situ.service.IUseraddressService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UseraddressService implements IUseraddressService {
    @Autowired
    private UseraddressDao useraddressDao;


    @Override
    public Useraddress getAddress(User user) {
        return useraddressDao.getAddress(user);
    }

    @Override
    public int addupdateAddress(Useraddress useraddress) {
       return  useraddressDao.addupdateAddress(useraddress);
    }

    @Override
    public int updateUseraddress(Useraddress useraddress) {
       return useraddressDao.updateUseraddress(useraddress);
    }
}